From: Florian Müllner Date: Tue, 26 Feb 2019 01:13:43 +0000 (+0100) Subject: test-theme: Force default resolution X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~888^2^2~20 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=70ac33d58ce52abe6f67480201422a402b7ba43d;p=gnome-shell.git test-theme: Force default resolution Clutter no longer hard-codes a resolution of 96 DPI (although that's still the default), so any assertions of sizes for physical units may be off. Fix this by setting up the test environment according to the assumptions. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/419 --- diff --git a/src/st/test-theme.c b/src/st/test-theme.c index a6fc9a5f5..2548ca203 100644 --- a/src/st/test-theme.c +++ b/src/st/test-theme.c @@ -542,6 +542,9 @@ main (int argc, char **argv) if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) return 1; + /* Make sure our assumptions about resolution are correct */ + g_object_set (clutter_settings_get_default (), "font-dpi", -1, NULL); + file = g_file_new_for_path ("st/test-theme.css"); theme = st_theme_new (file, NULL, NULL); g_object_unref (file);